package com.thinkTank.oa.dao;



import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkTank.oa.base.BaseMapper;
import com.thinkTank.oa.entity.Permission;

public interface PermissionMapper  extends BaseMapper<Permission>{

	public List<Permission> findPermissionByMenu();
	
	public Permission findPermissionByUrl(String url);
	
	public List<Permission> queryAllMenu();
	public List<Permission> queryAllPermission();
	public Integer addRoleAndPermission(@Param("roleId") Integer roleId,@Param("perId")Integer perId);

	public List<Permission> queryAllUserByPerm(String userId);
	
	public List<Permission> findPermissionByRoleId(Integer roleId);
	public Integer deletePermissionByRole(Integer roleId);
}
